﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <title>My JSP 'add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">

    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
    <script type="text/javascript" th:src="@{/js/eye-base.js}"></script>
    <script type="text/javascript" th:src="@{/js/eye-all.js}"></script>

  </head>
  
   <body>
   <div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加电影信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" th:action="@{/fiml/addFiml}">
     
    <table style="font-size: 12px;">
    	 <tr>
    	 <td style="text-indent: 99px;">
    	 	电影类别&nbsp;：&nbsp;
    	 </td>
     	<td>
       <select name="sid" id="movies-type">
       </select>  
     	</td>
     </tr>
    </table>
    
    <br/>
    <div class="form-group">
        <div class="label">
          <label>电影名称：</label>
        </div>
        <div class="field">
          <textarea class="input" name="fname" id="fname" style="height:45px"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>主演：</label>
        </div>
        <div class="field">
          <textarea class="input" name="fauto" id="fauto" style="height:45px"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      
            <div class="form-group">
        <div class="label">
          <label>上映时间：</label>
        </div>
        <div class="field">
          <textarea class="input" name="ontime" id="time" style="height:45px" onClick="eye.datePicker.show(ontime);"></textarea>
          
          <div class="tips"></div>
        </div>
      </div>
       
              
              
      <div class="form-group">
        <div class="label">
          <label>简介：</label>
        </div>
        <div class="field">
          <textarea name="fremark" class="input" id="fremark" style="height:120px;"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
<script>
    $(function(){
        $.get("../gson/fsortGson",function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<option value="'+n.sid+'">' +
                    n.sname +
                    '</option>';
            });
            $('#movies-type').append(gsonText);
        });
    });
</script>
</html>
